#include "AutoMutex.h"

#include "Mutex.h"

/*
	AutoMutex
*/

/*	public	*/

AutoMutex::AutoMutex(Mutex& mutex) :
	_mutex(mutex) {
	mutex.lock();
}

AutoMutex::~AutoMutex() {
	_mutex.unlock();
}

